<?php
/**
 * Description
 * 
 * PHP version 7
 * 
 * @category Custom
 * @package  Custom
 * @author   ryu <mo5467@126.com>
 * @date     2020-04-25 11:22:16
 * @lastTime 2020-05-01 23:06:49
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     none
 */

namespace Test\Unit;

use Design\Structural\DependencyInjection\Database;
use Design\Structural\DependencyInjection\DatabaseConfiguration;

class DependencyInjectionTest extends \Test\BaseTest
{


    public function testDependencyInjection()
    {
        $config     = new DatabaseConfiguration(
            '127.0.0.1',
            '3306',
            'root',
            'root'
        );
        $connection = new Database($config);

        $this->assertSame('root:root@127.0.0.1:3306', $connection->getDsn());

    }//end testDependencyInjection()


}//end class
